package com.woniuxy.demo.epai.service;

import com.woniuxy.demo.epai.controller.form.UserRegisterForm;
import com.woniuxy.demo.epai.controller.form.userForm;
import com.woniuxy.demo.epai.model.Members;
import com.woniuxy.demo.epai.model.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author epai
 * @since 2021-04-12
 */
public interface IUserService extends IService<User> {
    //根据id查询会员状态(是否为会员)
    int getVipStatusById(Integer id);

    //修改会员属性,更改会员状态
    void addVid(userForm user);

    //根据id查询会员的所有信息
    User findVip(Integer id);

    //用户登录
    Integer userLogin(String username,String password);

    //用户注册
    void userRegister(UserRegisterForm userRegisterForm);
}
